package metier;

public class Application {

	public static void main(String[] args) {

		CompteSimple cp1 = new CompteSimple(8000, 6000);
		CompteEpargne cp2 = new CompteEpargne(30000, 5);
		ComptePayant cp3 = new ComptePayant(7000);
		System.out.println(cp1);
		System.out.println(cp2);
		System.out.println(cp3);
		System.out.println("----------------------------------------");
		
		cp2.verser(5000);
		cp2.retirer(2000);
		cp2.calculInterets();
		System.out.println(cp2);
		System.out.println("----------------------------------------");
		
		cp3.verser(4000);
		cp3.retirer(2000);
		System.out.println(cp3);
		System.out.println("----------------------------------------");
	}
}
